﻿using UnityEngine;

namespace winS.Unity
{
    /// <summary>
    /// Provides rich text support.
    /// </summary>
    public static class RichtextUtility
    {
        public static string AddSizeTag(string text, int size)
        {
            return $"<size={size}>{text}</size>";
        }
        public static string AddColorTag(string text, Color color)
        {
            return $"<color={ColorUtility.RGBToHEX(color)}>{text}</color>";
        }
    }
}